﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="WorkTemplateUpdForm.aspx.cs" ValidateRequest="false" Inherits="App_Input_WorkTemplateUpdForm"
    Title="工作模板" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="javascript" type="text/javascript">
        function selectButtonClick(commond,itemId){
             document.getElementById('<%=hidModify.ClientID%>').value = '';
             if ('DELE' == commond && !window.confirm('确定要删除当前项目吗？')) {
                return false;
             }             
             document.getElementById('<%=hidItemId.ClientID%>').value = itemId; 
             document.getElementById('<%=hidCommond.ClientID%>').value = commond; 
             if ('EDIT' == commond) {
                document.getElementById('<%=hidModify.ClientID%>').value = '1';
             }
        }
    </script>

    <table border="0" class="table_border_line">
        <tr>
            <td align="left">

                <script language="javascript" type="text/javascript">
                 (new TitleBar('TemplateBar', '每日常规例行工作模板')).showBar();
                </script>

            </td>
        </tr>
    </table>
    <table border="0" width="100%" style="background: ffffff">
        <tr>
            <td>&nbsp; <span style="color: #ff7300">*</span>工作模板名称： </td>
        </tr>
        <tr>
            <td>&nbsp;<asp:TextBox ID="txtTemplateName" runat="server" Width="200px" />
                <asp:Button ID="btnShow" runat="server" Text=" 确 定 " Width="71px" OnClick="btnShow_Click" OnClientClick="return confirm('是否确定更新工作模板名称？')" />&nbsp;
                <asp:Button ID="btnDelTmp" runat="server" Text=" 删 除 " Width="71px" OnClick="btnDelTmp_Click"
                    OnClientClick="javascript:return window.confirm('确定要删除该模版吗？\n删除模版后，该模版下的所有已建项目都将被删除，继续吗？');" /></td>
        </tr>
    </table>

    <p>&nbsp;</p>

    <table border="0" width="100%" runat="server" id="tableItems">
        <tr>
            <td>
                <table border="0" class="table_border_line">
                    <tr>
                        <td align="left">

                            <script language="javascript" type="text/javascript">
                (new TitleBar('TemplateBar', '每日常规例行工作项目')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
                <asp:Table ID="TblTemplate" runat="server" BorderWidth="1px" CssClass="GridView_table"
                    BorderStyle="Solid">
                    <asp:TableHeaderRow ID="TableHeaderRow1" runat="server">
                        <asp:TableHeaderCell ID="TableHeaderCell1" CssClass="GridView_head_grayblue" Width="150"
                            runat="server"><b>工作时间</b></asp:TableHeaderCell>
                        <asp:TableHeaderCell ID="TableHeaderCell3" CssClass="GridView_head_grayblue"
                            runat="server"><b>工作内容</b></asp:TableHeaderCell>
                        <asp:TableHeaderCell ID="TableHeaderCell2" CssClass="GridView_head_grayblue" Width="120"
                            runat="server"><b>工作分类</b></asp:TableHeaderCell>
                        <asp:TableHeaderCell ID="TableHeaderCell4" CssClass="GridView_head_grayblue" Width="65"
                            runat="server"><b>操作</b></asp:TableHeaderCell>
                    </asp:TableHeaderRow>
                </asp:Table>
            </td>
        </tr>
        <tr>
            <td>
                <table width="100%" style="background: ffffff">
                    <tr>
                        <td style="width: 1px">&nbsp;</td>
                        <td style="width:150">&nbsp; &nbsp; 工作时间：</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtBeginTime" runat="server" Width="79px" MaxLength="5" />
                            ～
                            <asp:TextBox ID="txtEndTime" runat="server" Width="79px" MaxLength="5" />
                            (格式 hh:mm)
                            </td>
                        <td style="">&nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 1px">&nbsp;</td>
                        <td style="">&nbsp; &nbsp; 工作类型：</td>
                        <td colspan="3">
                            <asp:DropDownList ID="ddlItemType" runat="server" DataValueField="DictNo" DataTextField="Content" />
                        </td>
                        <td style="">&nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 1px">&nbsp;</td>
                        <td style="">&nbsp; <span style="color: #ff7300">*</span>工作内容：</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtWorkContent" runat="server" Width="99%" Rows="3" TextMode="MultiLine" /></td>
                        <td style="">&nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 1px">&nbsp;</td>
                        <td style="width:150">&nbsp;</td>
                        <td style="">&nbsp;</td>
                        <td style="">&nbsp;</td>
                        <td style="">&nbsp;</td>
                        <td style="">&nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="hidItemId" runat="server" />
    <asp:HiddenField ID="hidCommond" runat="server" />
    <asp:HiddenField ID="hidModify" runat="server" />
    <table width="100%">
        <tr>
            <td align="center" style="">
                <asp:Button ID="btnCancel" runat="server" Text="新 建" Width="89px" OnClick="btnCancel_Click" CssClass="button" />&nbsp;
                <asp:Button ID="btnOk" runat="server" Text=" 登 记 " Width="89px" OnClick="btnOk_Click" OnClientClick="return confirm('是否确定登记工作项目？')" CssClass="button" />&nbsp;
                <asp:Button ID="btnBack" runat="server" OnClick="btnBack_Click" Text=" 返 回 " Width="89px" CssClass="button" /></td>
        </tr>
    </table>
</asp:Content>
